package com.bluesky.javawebbrowser.domain.html.tags;

import java.io.IOException;
import java.io.Writer;

public class TextBlock extends Tag {
	public TextBlock() {
		super(TagType.TEXT_BLOCK);
	}

	public TextBlock(String text) {
		super(TagType.TEXT_BLOCK);
		body = text;
	}

	public TextBlock(Tag tag) {
		super(TagType.TEXT_BLOCK);
		copy(tag);
	}

	@Override
	public void writeHtml(Writer writer) throws IOException {
		writer.write(body);
	}
}
